/**
 * Copyright &copy; 2016 CNJSON All rights reserved.
 */
package com.hongsuan.pplive.modules.live.entity;

import org.hibernate.validator.constraints.Length;

import com.cnjson.db.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author cgli
 * @version 2016-06-06
 */
public class LiveGitConfig extends DataEntity<LiveGitConfig> {

	private static final long serialVersionUID = 1L;
	private String name;		// 礼物名称
	private String code;		// 代码
	private String filename;		// 礼物文件名称
	private String sfilename;		// 小图礼物名称
	private Integer price;		// 礼物对应多少个金豆
	private Integer exp;		// 礼物对应多少个验证值
	private Integer isEnable;		// 可用状态
	private Integer type;		// 赠送对象分类(男、女分开)

	public LiveGitConfig() {
		super();
	}

	public LiveGitConfig(String id){
		super(id);
	}

	@Length(min=0, max=50, message="礼物名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Length(min=1, max=20, message="代码长度必须介于 1 和 20 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Length(min=0, max=255, message="礼物文件名称长度必须介于 0 和 255 之间")
	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	@Length(min=0, max=255, message="小图礼物名称长度必须介于 0 和 255 之间")
	public String getSfilename() {
		return sfilename;
	}

	public void setSfilename(String sfilename) {
		this.sfilename = sfilename;
	}

	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public Integer getExp() {
		return exp;
	}

	public void setExp(Integer exp) {
		this.exp = exp;
	}

	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}